﻿using System;
using System.Collections.Generic;
using SharpSqlAnalyzer.pp.processor.type.comm;
using SharpSqlAnalyzer.pp.utils;
using SharpSqlAnalyzer.stmt;

namespace SharpSqlAnalyzer.pp.processor.type.delete
{
	// Token: 0x02000243 RID: 579
	public class DeleteKeyWordAlignProcessor : AbstractKeyWordAlignProcessor
	{
		// Token: 0x060012FD RID: 4861 RVA: 0x0031BF6C File Offset: 0x0031A16C
		protected internal override IList<TSourceToken[]> getTSourceToken<E>(E arg)
		{
			TDeleteSqlStatement tdeleteSqlStatement = arg as TDeleteSqlStatement;
			IList<TSourceToken[]> list = new List<TSourceToken[]>();
			TSourceToken deleteToken = tdeleteSqlStatement.DeleteToken;
			TSourceToken tsourceToken = SourceTokenSearcher.forwardSearch(deleteToken, 5, "from");
			if (deleteToken != null && tsourceToken != null)
			{
				list.Add(new TSourceToken[]
				{
					deleteToken,
					tsourceToken
				});
			}
			if (tdeleteSqlStatement.WhereClause != null && tdeleteSqlStatement.WhereClause.startToken != null)
			{
				list.Add(new TSourceToken[]
				{
					tdeleteSqlStatement.WhereClause.startToken
				});
			}
			return list;
		}
	}
}
